
import java.math.BigInteger;
import java.util.Scanner;
public class Text07{
	public static void main(String[] args) {
		 Scanner in = new Scanner(System.in);
		 BigInteger a=new BigInteger("0");
		 BigInteger result=new BigInteger("0");
		 String s=null; 
		 while(!((s=in.next()).indexOf("e")!=-1) && !(s.indexOf("E")!=-1)){ 
			 BigInteger n=new BigInteger(s); 
			 result=result.add(n);		    
		 }
		 System.out.println(result);
	}
}
